<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/8/1
 * Time: 11:44
 */
include_once ('OnTheBookShelf.php');

class OneBook extends OnTheBookShelf{

    private $title;
    private $author;

    function __construct($title,$author)
    {
        $this->title= $title;
        $this->author=$author;

    }
    function getBookInfo($bookTooGet)
    {
        // TODO: Implement getBookInfo() method.
        if (1 == $bookTooGet){
            return $this->title."by".$this->author;
        }else{
            return FALSE;
        }
    }

    function getBookCount()
    {
        // TODO: Implement getBookCount() method.
        return 1;
    }

    function setBookCount($new_count)
    {
        // TODO: Implement setBookCount() method.
        return FALSE;
    }

    function addBook($oneBook)
    {
        // TODO: Implement addBook() method.
        return FALSE;
    }

    function removeBook($oneBook)
    {
        // TODO: Implement removeBook() method.
        return FALSE;
    }
}